import pytest


@pytest.fixture()
def login():
    print("---前置：登录")
    yield
    print("---后置：退出")


def test_a(login):
    print("--------------test_a")


class Test01:
    def test_b(self, login):
        print("--------------test_b")

    def test_c(self):
        print("--------------test_c")